﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Power.Models
{
    /// <summary>
    /// 项目概况
    /// </summary>
    public class ProOverviewEntity:BaseModel
    {
        //======================================基本信息==========================================
        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProName { get; set; }
        /// <summary>
        /// 项目代码
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 子项
        /// </summary>
        public String SubProject { get; set; }
        /// <summary>
        /// 片区代码
        /// </summary>
        public String Area { get; set; }
        /// <summary>
        /// 区块代码
        /// </summary>
        public String Block { get; set; }
        /// <summary>
        /// 工点名称
        /// </summary>
        public String WorkField { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        private string defectBat;
        public String DefectBat { get => defectBat;
            set
            {
                defectBat = value;
                RaisePropertyChanged();
            }
        }

        //======================================综合信息==========================================

        /// <summary>
        /// 管段数量
        /// </summary>
        public int PipeNum { get; set; }
        /// <summary>
        /// 检测长度
        /// </summary>
        public double DetectLen { get; set; }
        /// <summary>
        /// 缺陷管段数量
        /// </summary>
        public int DefectPipNum { get; set; }
        /// <summary>
        /// 结构性缺陷数量
        /// </summary>
        public int StruDefectNum { get; set; }
        /// <summary>
        /// 功能性缺陷数量
        /// </summary>
        public int FuncDefectNum { get; set; }


        //======================================缺陷密度图（左下角）==========================================

        public List<DefectDenseChartData> DefectDense { get; set; }

        //======================================缺陷等级图（左下角）==========================================

        /// <summary>
        /// 缺陷1级占比
        /// </summary>
        public int DefectLv1 { get; set; }

        /// <summary>
        /// 缺陷2级占比
        /// </summary>
        public int DefectLv2 { get; set; }

        /// <summary>
        /// 缺陷3级占比
        /// </summary>
        public int DefectLv3 { get; set; }

        /// <summary>
        /// 缺陷4级占比
        /// </summary>
        public int DefectLv4 { get; set; }

        //======================================缺陷种类表==========================================
        /// <summary>
        /// 缺陷种类表
        /// </summary>
        public List<DefectKindTableData> DefectKind { get; set; }


        private List<string> batchList;
        public List<string> BatchList
        {
            get => batchList;
            set
            {
                batchList = value;
                RaisePropertyChanged();
            }
        }


    }



}
